//
//  LaunchScreenViewController.m
//  Meroad
//
//  Created by COOLMOON on 2019/4/15.
//  Copyright © 2019年 沈煜航. All rights reserved.
//

#import "LaunchScreenViewController.h"

@interface LaunchScreenViewController()

@property (weak, nonatomic) IBOutlet UIImageView *logoImgaeView;

@end

@implementation LaunchScreenViewController

-(void)viewDidLoad{
    
    UIView *launchView = self.logoImgaeView;
    UIWindow *mainWindow = [UIApplication sharedApplication].keyWindow;
    launchView.frame = [UIApplication sharedApplication].keyWindow.frame;
    [mainWindow addSubview:launchView];
    
    [UIView animateWithDuration:0.6f delay:0.5f options:UIViewAnimationOptionBeginFromCurrentState animations:^{
        launchView.alpha = 0.0f;
        launchView.layer.transform = CATransform3DScale(CATransform3DIdentity, 1.5f, 1.5f, 1.0f);
    } completion:^(BOOL finished) {
        [launchView removeFromSuperview];
    }];
}

@end
